maths problem solution